<!--
 * @Author: 15956982113 493885262@qq.com
 * @Date: 2025-05-30 09:44:57
 * @LastEditors: 15956982113 493885262@qq.com
 * @LastEditTime: 2025-05-30 11:52:39
 * @FilePath: \v3-webpackf:\project\v3-vite\src\App.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <router-view v-slot="{ Component }">
    <keep-alive :include="cacheList">
      <component :is="Component" />
    </keep-alive>
  </router-view>
</template>

<script setup>
import { useCacheStore } from '@/store/cache';
import { storeToRefs } from 'pinia'
const cacheStore = useCacheStore()
// 需要缓存的组件列表
const { cacheList } = storeToRefs(cacheStore)
</script>

<style>
@import url("assets/css/reset.css");

#app {
  margin: 0 auto;
  max-width: 750px;
}
</style>